# # build front-end
# FROM node:16-alpine AS build

# # 声明工作目录
# WORKDIR /frontend
# # 拷贝整个web项目到当前工作目录
# COPY . .

# # 安装依赖
# RUN npm config set registry https://registry.npmmirror.com --global
# RUN npm install -g pnpm@8
# RUN pnpm install
# # 打包
# RUN pnpm build:admin

# 直接使用本地打包好的dist生成镜像
#FROM nginx:latest
FROM registry.cn-hangzhou.aliyuncs.com/hanmin/nginx:latest

COPY ./apps/admin/dist/ /usr/share/nginx/html/
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx-asset.conf /etc/nginx/conf.d/asset.conf
